package com.wenkang.stu.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wenkang.stu.mapper.RoleMapper;
import com.wenkang.stu.pojo.SysRole;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysRoleService extends ServiceImpl<RoleMapper, SysRole> implements IService<SysRole> {
    @Autowired
    private RoleMapper roleMapper;

    public List<SysRole> selectByUserId(Integer userId) {
        return roleMapper.selectByUserId(userId);
    }
}
